# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libreoffice-voikko
pkgver=5.0_git20200127
pkgrel=0
pkgdesc="Voikko spelling, hyphenation and grammar checker extension for LibreOffice"
_commit=d7363092551a72cb51d95a1b89a3a4af8dabc6b4
url="https://voikko.puimula.org/"
arch="noarch"
license="MPL-2.0 OR GPL-3.0-or-later"
depends="libvoikko"
makedepends="zip"
options="!check" # no tests
source="$pkgname-$_commit.tar.gz::https://github.com/voikko/libreoffice-voikko/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make oxt
}

package() {
	make DESTDIR="$pkgdir/usr/lib/libreoffice/share/extensions/voikko" install-unpacked
}

sha512sums="
3d08f7efbb13cd8c79c35f27d3be3e7aa76b3b9fa90f7a2a63acb43507930009d6a52383bc63beb2c8179d5710ac5ab6fade261ca73dbec8ea90d0162c12be8d  libreoffice-voikko-d7363092551a72cb51d95a1b89a3a4af8dabc6b4.tar.gz
"
